using System;
using System.Collections.Generic;

namespace Diploma.Models.IRepositories
{
    public interface ITasksRepository
    {
        void Add(Task task, PlaningType planingType, QualificationLevel level, bool toAll);
        void Edit(Task task, PlaningType planingType);
        void Delete(Task task);
        Task GetTask(Guid id);
        IEnumerable<Task> GetTasks(CollaborationRoom room, PlaningType planingType);
        IEnumerable<Task> GetTasksWithDateLower(CollaborationRoom room, PlaningType planingType, DateTime? date);
        bool TaskCanBeAdded(Task task, int planingTypeId);
        void SetCompletion(Task task, bool isCompleted);
    }
}